<template>
  <button @click="handleClick">
    <slot>点我</slot>
  </button>
</template>
<script>
export default {
  name: "BaseEvent",
  methods: {
    handleClick(event) {
      this.$emit("on-click", event);
    }
  }
};
</script>
